package com.sx.zongzhi.adapter;


import android.content.Context;
import android.widget.TextView;

import com.sx.zongzhi.R;
import com.zhy.adapter.abslistview.CommonAdapter;
import com.zhy.adapter.abslistview.ViewHolder;

import java.util.List;

/**
 * Created by XZY on 2017/11/23.
 * 处理权限的spinner
 */
public class SpinnerDealAdapter extends CommonAdapter<String> {


    private Context context;
    private boolean setSelector=false;

    public SpinnerDealAdapter(Context context, int layoutId, List<String> datas) {
        super(context, layoutId, datas);
        this.context=context;
    }

    @Override
    protected void convert(ViewHolder viewHolder, String item, int position) {
        TextView textView=viewHolder.getView(R.id.tv_Content);
        if("30".equals(item)){
            textView.setText("结案");
        }else if("50".equals(item)){
            textView.setText("上报");
        }else if("70".equals(item)){
            textView.setText("交办");
        }else if("90".equals(item)){
            textView.setText("回退");
        }else{
            textView.setText("办理");//10
        }
    }
}
